package br.com.myuni;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {

	public Connection getConnection(){
		try {
			Connection connection = DriverManager.getConnection("jdbc:mysql://mysql14.kinghost.net","joaoricardotei06","dna399");
			
			connection.prepareStatement("USE joaoricardotei06").execute();
			
			return connection;
		} catch (SQLException e){
			throw new RuntimeException(e);
		}
	}
}
